<template class="choose-manager-pop">
	<view class="parent-view">
		<view class="pop-view">
			<view class="title-parent">
				<text class="title-arrow" @click="itemClose">返回</text>
				<text class="pop-title">选择管理员</text>
			</view>
			<scroll-view  class="list-parent" scroll-y="true">
				<view class="manager-view" v-for="(item , index) in managerData" :key="'item'+index"
				 @click="itemClick" :data-index="item">
					<image class="head-image" :src="item.avatar"></image>
					<view class="content-parent">
						<text class="manager-name" v-if="item.auth==1">{{item.name}}(管理员)</text>
						<text class="manager-name" v-if="item.auth==2">{{item.name}}(联合发起人)</text>
						<text class="manager-name" v-if="item.auth==3">{{item.name}}(发起人)</text>
						<text class="manager-address">{{item.site}}</text>
					</view>
				</view>
			</scroll-view>
		</view>
	</view>
</template>

<script>
	export default {
		name: "choose-manager-pop",
		data() {
			return {
				
			}
		},
		props: {
			managerData: Array,
		},
		methods: {
			///点击用户
			itemClick(e) {
				let item = e.currentTarget.dataset.index;
				this.$emit('managerItemClose')
				this.$emit('managerItemClick',item)
			},
			itemClose(){
				this.$emit('managerItemClose')
			}
		}
	}
</script>

<style>
	@import "choose-manager.css";
</style>

